package com.gper.edu.vip.struct.decorator.privilege;

import com.gper.edu.vip.struct.decorator.*;

/**
 * @Author: ellis.guan
 * @Description:
 * @Date: 2020/3/7 20:06
 * @Version: 1.0
 */
public class SystemPrivilege {
    private GPTitle title;
    public SystemPrivilege(GPTitle title){
        this.title = title;
    }
    public String getNavigation(){
        return title.getTitle();
    }

    public static class Builder{

        public SystemPrivilege buildUser(){
            GPTitle title = new QuestionNavigation(new GPTitle());
            title = new ArticleNavigation(title);
            title = new HomeWorkNavigation(title);
            title = new QuestionBankNavigation(title);
            title = new GrowUpNavigation(title);
            title = new ClassicalCourseNavigation(title);
            title = new BubblingNavigation(title);
            title = new ShoppingNavigation(title);
            return new SystemPrivilege(title);
        }
    }
}
